package org.fund.base_service.domain;

import java.math.BigDecimal;
import java.util.Date;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.fund.base_service.domain.input.base.BaseDomain;

/**
 * 买卖记录(TransactionRecord)实体类
 *
 * @author makejava
 * @since 2022-03-13 01:28:44
 */
@ApiModel(value = "买卖记录")
@Data
public class TransactionRecord extends BaseDomain implements Serializable {
    private static final long serialVersionUID = -44055561347351935L;
    /**
     * 主键
     */
    @ApiModelProperty(value = "主键")
    private Integer id;
    /**
     * 基金名称
     */
    @ApiModelProperty(value = "基金名称")
    private String fundName;

    /**
     * 操作类型 0 买入 1卖出
     */
    @ApiModelProperty(value = "操作类型 0 买入 1卖出 ")
    private int operatorType;
    /**
     * 操作时间
     */
    @ApiModelProperty(value = "操作时间")
    private Date operatorTime;
    /**
     * 确认金额
     */
    @ApiModelProperty(value = "确认金额/份额")
    private BigDecimal confirmAmount;
    /**
     * 确认价格
     */
    @ApiModelProperty(value = "确认价格")
    private BigDecimal confirmPrice;
    /**
     * 基金代码
     */
    @ApiModelProperty(value = "基金代码")
    private String fundCode;
    /**
     * 操作金额或份额
     */
    @ApiModelProperty(value = "操作金额或份额")
    private String amount;
    /**
     * 费率
     */
    @ApiModelProperty(value = "费率")
    private BigDecimal rate;
    /**
     * 费用
     */
    @ApiModelProperty(value = "费用")
    private BigDecimal cost;

    /**
     * 当前状态
     */
    @ApiModelProperty(value = "当前状态")
    private byte currentStatus;

    @ApiModelProperty(value = "是否删除")
    private Integer isDeleted;
    @ApiModelProperty(value = "持仓Id")
    private Integer pId;

}

